/*
 * @Author: BF-202204111659\Administrator qiutengda@dingtalk.com
 * @Date: 2022-06-24 10:41:31
 * @LastEditors: BF-202204111659\Administrator qiutengda@dingtalk.com
 * @LastEditTime: 2022-06-24 11:01:54
 * @FilePath: \visiotrip-group\uni-H5\src\utils\loading\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import './index.css';
let div = document.createElement('div');
div.innerHTML = '<div class="td-loading-mask"></div><div class="td-loading"></div>';
div.id = 'js-loading';
div.style.display = 'none';
document.body.appendChild(div);

export default {
  show() {
    document.getElementById('js-loading').style.display = 'block';
  },
  hide() {
    document.getElementById('js-loading').style.display = 'none';
  }
}
